package com.ruoyi.system.domain.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.TableField;
import com.ruoyi.common.annotation.ExcelDictFormat;
import com.ruoyi.common.convert.ExcelDictConvert;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;


/**
 * 租户视图对象 sys_tenant
 *
 * @author ruoyi
 * @date 2022-03-22
 */
@Data
@ApiModel("租户视图对象")
@ExcelIgnoreUnannotated
public class SysTenantVo {

    private static final long serialVersionUID = 1L;

    /**
     * 租户ID
     */
    @ExcelProperty(value = "租户ID")
    @ApiModelProperty("租户ID")
    private Long tenantId;

    /**
     * 租户名称
     */
    @ExcelProperty(value = "租户名称")
    @ApiModelProperty("租户名称")
    private String tenantName;

    /**
     * 负责人
     */
    @ExcelProperty(value = "负责人")
    @ApiModelProperty("负责人")
    private String leader;

    /**
     * 联系电话
     */
    @ExcelProperty(value = "联系电话")
    @ApiModelProperty("联系电话")
    private String phone;

    /**
     * 邮箱
     */
    @ExcelProperty(value = "邮箱")
    @ApiModelProperty("邮箱")
    private String email;

    /**
     * 租户描述
     */
    @ExcelProperty(value = "租户描述")
    @ApiModelProperty("租户描述")
    private String remark;

    /**
     * 租户状态（0正常 1停用）
     */
    @ExcelProperty(value = "租户状态", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "0=正常,1=停用")
    @ApiModelProperty("租户状态（0正常 1停用）")
    private String status;

    /**
     * 角色组
     */
    @TableField(exist = false)
    private Long[] roleIds;

    /**
     * 角色ID
     */
    @TableField(exist = false)
    private Long roleId;

    /**
     * 创建时间
     */
//    @ExcelProperty(value = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    @ExcelProperty(value = "创建时间")
    @ApiModelProperty("创建时间")
    private Date createTime;


}
